From d0c233bbf877e7424fc9a52a69a8af155572bf2f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 29 Jul 2009 09:19:30 +0100 Subject: [PATCH] xend: pci: fix a typo in do_Dstate_transition Signed-off-by: Dexuan Cui --- tools/python/xen/util/pci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/util/pci.py b/tools/python/xen/util/pci.py index 55077e5c1b..3ca755c67b 100644 --- a/tools/python/xen/util/pci.py +++ b/tools/python/xen/util/pci.py @@ -730,7 +730,7 @@ class PciDevice: # devices transitioning from D3hot to D0 because of # PowerState commands do not perform an internal reset. pm_ctl = self.pci_conf_read32(pos + PCI_PM_CTRL) - if (pm_ctl & PCI_PM_CTRL_NO_SOFT_RESET) == 1: + if (pm_ctl & PCI_PM_CTRL_NO_SOFT_RESET) == PCI_PM_CTRL_NO_SOFT_RESET: return False (pci_list, cfg_list) = save_pci_conf_space([self.name]) -- 2.30.2